/**
 * @name class-search
 * @id python/class-search
 */

import python
import util

from File f,Module mod,Location location,string loc, Scope scope,ClassDef classdef,string className,string filePath,string moduleName,string scopeName
where isParentOfStmt(f, mod, scope, classdef) and
isSource(f) and
filePath=f.getAbsolutePath() and
location=classdef.getLocation() and
loc=getLocText(location) and
moduleName=mod.toString() and
scopeName=scope.toString() and
className=classdef.getDefinedClass().toString()

select filePath,moduleName,scopeName,className,loc